﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LoginControl.ascx.cs"
    Inherits="LoginControl" %>
<div id="login">
    <asp:Login ID="login_ctl" runat="server" CreateUserText="注册用户" PasswordRecoveryText="忘记密码"
        PasswordRecoveryUrl="~/Login/passwordrec.aspx" DestinationPageUrl="~/home.aspx"
        OnLoggedIn="login_ctl_LoggedIn" OnLoginError="login_ctl_LoginError">
        <LayoutTemplate>
            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" >用户名:</asp:Label>
            <asp:TextBox ID="UserName" runat="server" ></asp:TextBox>
            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密&nbsp;&nbsp;&nbsp;码:</asp:Label>
            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
            <asp:Button ID="LoginButton" runat="server" CommandName="Login" ValidationGroup="validatelogin"
                Text="登录" />
            <asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/Login/passwordrec.aspx">忘记密码?</asp:HyperLink>
            <asp:HyperLink ID="CreateUserLink" runat="server" NavigateUrl="~/Login/regguide.aspx">>>加入我们</asp:HyperLink>
        </LayoutTemplate>
    </asp:Login>
</div>
